package cn.howxu.yichen_ovo;

import cn.howxu.yichen_ovo.init.*;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

/**
 * @description: TODO
 * @author: HowXu
 * @date: 2025/9/12 17:57
 */
@Mod(YiChenOVO.MODID)
public class YiChenOVO {
    public static final String MODID = "yichenovo";
    public static YiChenOVO instance;
    public YiChenOVO(){
        // 单例模式
        instance = this;
        runMod();
    }
    
    private void runMod(){
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();

        ModPaintings.REGISTER.register(modEventBus);
        ModBlocks.REGISTER.register(modEventBus);
        ModItems.REGISTER.register(modEventBus);
        ModSounds.SOUND_EVENTS.register(modEventBus);
        ModEntities.ENTITY_TYPES.register(modEventBus);
        ModEntities.BLOCK_ENTITY_TYPES.register(modEventBus);
        ModEffects.EFFECTS.register(modEventBus);
        ModCreativeTabs.TABS.register(modEventBus);
        
    }
}
